'use strict';

module.exports = ({ mongoose }) => {
  const { Schema } = mongoose;
  const todoSchema = new Schema(
    {
      name: { type: String }, // 语言
      age: { type: Number }, // 微信号
    },
    {
      timestamps: true,
    }
  );
  return mongoose.model('todo', todoSchema);
};
